package Models;

import java.io.Serializable;

public class POSProductServingType implements Serializable {
	private static final long serialVersionUID = -2693315547478798255L;
	
	private int id;
    private POSGlassWare glassWare;
    private double cost;
    private POSBeerView beer;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public POSGlassWare getGlassWare() {
        return glassWare;
    }

    public void setGlassWare(POSGlassWare glassWare) {
        this.glassWare = glassWare;
    }

    public double getCost() {
        return cost;
    }

    public void setCost(double cost) {
        this.cost = cost;
    }

    public POSBeerView getBeer() {
        return beer;
    }

    public void setBeer(POSBeerView beer) {
        this.beer = beer;
    }
    
    public String getPSTString(){
    	return this.glassWare.getDescription() + ": $" + Double.toString(this.getCost());
    }
    
    public String getBeerString(){
    	if(this.getBeer()!=null){
    		return this.getBeer().getName();
    	} else {
    		return "Beer Not Set";
    	}
    }
}
